package com.example.proxyDemo1;

/**
 * 厂家类，
 * 金士顿厂家.不接受用户的单独购买
 */

public class UsbKingFactory implements UsbSell{

    private static final float UsbMoney = 85.0f;


    @Override
    public float sell(int amout) {

        return UsbMoney * amout;
    }

    @Override
    public float getShop(String name) {
        if (name.equals("phone")){
            return 10000.0f;
        }
        return -1;
    }
}
